import * as requestService from './request';

function filterData(result) {
  if (result.success) {
	  return result.data;
  }
  return [];
}

export function getMenus() {
  return requestService.post('/menu/data').then(filterData);
}

export function getZones() {
  return requestService.post('/zone/full').then(filterData);
}
